package com.xqh.javabasic.input_output_device;
import java.io.FileInputStream;
public class ReadIntToFile_MoveBit_BitOr{
	public static int readIntToFile_MoveBit_BitOr(String file_path) throws Exception {
		
		FileInputStream fis = new FileInputStream(file_path);
				
			int x0,x1,x2,x3,x;
			
				x0 = fis.read();
				x1 = fis.read();
				x2 = fis.read();
				x3 = fis.read();
				
				x0 = x0;
				x1 = (x1 << 1 * 8);
				x2 = (x2 << 2 * 8);
				x3 = (x3 << 3 * 8);
				
				x = x3|x2|x1|x0;
				
			//
					
		fis.close();
		
		return x;
	}
public static void main (String [] args) throws Exception{
		
		int return_number = readIntToFile_MoveBit_BitOr("d:/data0");
	
			System.out.println(return_number);
	}
}